$(document).ready(function(){
  jQuery("#list").jqGrid({
   	url:'data.php',
	datatype: "json",
   	colNames:['User','Password'],
   	colModel:[
   		{name:'user',index:'id', width:55},
   		{name:'password',index:'invdate', width:90}
   	],
   	rowNum:10,
   	rowList:[10,20,30],
   	pager: '#pager',
   	sortname: 'id',
    viewrecords: true,
    sortorder: "desc",
    imgpath: 'jqGrid/themes/basic/images',
    caption:"JSON Example",
    width:425
   });
   jQuery("#list").jqGrid('navGrid','#pager',{edit:false,add:false,del:false});
});
